/**
 * 2017年8月13日
 */
package spring;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;
import org.springframework.stereotype.Component;

/**
 * @author Alex
 *
 */
@Component
public class AlexThrowsAdvice implements ThrowsAdvice {
	public void afterThrowing(Method method,Object[] objs,Object target,Throwable ta){
		System.out.println("Exception happened "+ta+" and was thrown in "+method);
		
	}
}
